//
//  HomeTableViewCell.m
//  225视听百科
//
//  Created by 张潇 on 14/12/27.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "HomeTableViewCell.h"

@implementation HomeTableViewCell

- (void)dealloc
{
    [_nameLabel release];
    [_numLabel release];
    [_infoLabel release];
    [_homeImg release];
    [super dealloc];
}



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.frame = [[UIScreen mainScreen] bounds];
        UIImageView *img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"grayback.png"]];
        img.frame = CGRectMake(0, 0, self.frame.size.width, 90);
        [self.contentView addSubview:img];
        [img release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 10, 260, 20)];
        _nameLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_nameLabel];
        [_nameLabel release];
        
        self.infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 35, 260, 20)];
        _infoLabel.textColor = [UIColor whiteColor];
        _infoLabel.font = [UIFont systemFontOfSize:16];
        [self.contentView addSubview:_infoLabel];
        [_infoLabel release];
        
        self.numLabel = [[UILabel alloc] initWithFrame:CGRectMake(100, 60, 260, 20)];
        _numLabel.textColor = [UIColor whiteColor];
        _numLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_numLabel];
        [_numLabel release];
        
        self.homeImg = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 75, 70)];
        [self.contentView addSubview:_homeImg];
        [_homeImg release];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
